﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;
using GCELibrary.Current;
namespace ZF.WS.Person
{
    public partial class freepub : ZF.BLL.Page.GMPage
    {
        [PageArgument(Key = "key", DefaultValue = null)]
        public string Key { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected override void OnPreRender(EventArgs e)
        {

            if (Key != null)
            {
                foreach (View view in this.mvList1.Views)
                {
                    if (view is BLL.UserControls.View && ((BLL.UserControls.View)view).Key.EqIgnoreCase(this.Key))
                    {
                        this.mvList1.SetActiveView(view);
                        break;
                    }
                }

            }

            base.OnPreRender(e);
        }
    }
}
